//
//  HKNetWorkConfig.h
//  HKNetService
//
//  Created by 胡锦涛 on 2018/6/12.
//  Copyright © 2018年 胡锦涛. All rights reserved.
//

#ifndef HKNetWorkConfig_h
#define HKNetWorkConfig_h

#define HK_SHOW_REQUESTHEAD_INFO 0  //是否打印请求头详细信息
#define HK_DEBUG 1

#define HKNetWeakSelf __weak typeof(self) weakSelf = self;
//强引用
#define HKNetStrongSelf __strong typeof(weakSelf) self = weakSelf;
typedef NS_ENUM(NSInteger, HKAppType) {
    HKAppTypeFYB,
};

typedef NS_ENUM(NSUInteger, HKResponseStatus)
{
    HKResponseStatusSuccess,
    HKResponseStatusErrorTimeout,
    HKResponseStatusErrorNoNetwork // 默认除了超时以外的错误都是无网络错误。
};

static NSTimeInterval HKNetworkTimeoutSeconds = 10.0f;

static BOOL HKShouldCache = YES;
static NSUInteger const HKCacheCountLimit = 1000;
static NSTimeInterval HKCacheOutdateTimeSeconds = 300; // 5分钟的cache过期时间

extern NSString * const HKServiceRoot;

#endif /* HKNetWorkConfig_h */
